package cn.itcast.eshop.common.service;

import cn.itcast.eshop.common.entity.User;
import cn.itcast.eshop.common.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Component
public class UserService {

    @Autowired
    UserMapper userMapper;
    public User login(User user){
        return userMapper.login(user.getId());
    }

    public List<User> getEntityLIst(){
        return userMapper.getEntityLIst();
    }
}
